package com.crm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.crm.entity.Business;
import com.crm.entity.BusinessFollow;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BusinessMapper extends BaseMapper<Business> {


    List<BusinessFollow> getBusinessFollowList(Long businessId);

    @Insert("insert into business_record (business_id, track_status, next_time, record, key_items, type,false_reason) value (#{businessId},#{trackStatus},#{nextTime},#{record},#{keyItems},#{type},#{falseReason}) ")
    void addBusinessFollow(BusinessFollow businessFollow);
}
